package edu.gatech.angry12.UI.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ListBox;

public class ListingDetails extends Composite {

	public ListingDetails() {
		
		FlexTable flexTable = new FlexTable();
		flexTable.setStyleName("gwt-SeedApp-Registration-background");
		initWidget(flexTable);
		
		Label lblListing = new Label("Listing");
		flexTable.setWidget(0, 0, lblListing);
		
		Label lblType = new Label("Type:");
		lblType.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(1, 0, lblType);
		
		ListBox typeDropDown = new ListBox();
		typeDropDown.setName("TypeDropDown");
		flexTable.setWidget(1, 1, typeDropDown);
		typeDropDown.setWidth("157px");
		
		Label lblSeed = new Label("Seed:");
		lblSeed.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(2, 0, lblSeed);
		
		Grid grid_1 = new Grid(1, 2);
		flexTable.setWidget(2, 1, grid_1);
		
		TextBox seedTextBox = new TextBox();
		grid_1.setWidget(0, 0, seedTextBox);
		
		Button btnSearchSeed = new Button("Search");
		grid_1.setWidget(0, 1, btnSearchSeed);
		
		Label lblQuantity = new Label("Quantity:");
		lblQuantity.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(3, 0, lblQuantity);
		
		TextBox quantityTextBox = new TextBox();
		flexTable.setWidget(3, 1, quantityTextBox);
		
		Label lblDelivery = new Label("Delivery:");
		lblDelivery.setStyleName("gwt-SeedApp-Registration-body");
		flexTable.setWidget(4, 0, lblDelivery);
		
		TextBox textBox_1 = new TextBox();
		flexTable.setWidget(4, 1, textBox_1);
		textBox_1.setSize("229px", "142px");
		
		Grid grid = new Grid(1, 2);
		flexTable.setWidget(5, 1, grid);
		grid.setWidth("163px");
		
		Button button = new Button("Register");
		grid.setWidget(0, 0, button);
		
		Button button_1 = new Button("Cancel");
		grid.setWidget(0, 1, button_1);
	}

}
